package br.usp.ime.comercioeletronico.modelo;

import org.nakedobjects.extended.Entity;
import org.nakedobjects.object.AbstractNakedObject;
import org.nakedobjects.object.Title;
import org.nakedobjects.object.value.Date;
import org.nakedobjects.object.value.TextString;

@Entity
public class Pedido extends AbstractNakedObject{

	private Date data = new Date();
	private TextString estado = new TextString();
	private Cliente cliente;
	
	
	public void setCliente(Cliente cliente) {
		this.cliente = cliente;
		objectChanged();
	}
	
	public Cliente getCliente() {
		resolve(cliente);
		return cliente;
	}

	public Date getData() {
		return data;
	}

	public TextString getEstado() {
		return estado;
	}

	@Override
	public Title title() {
		return super.title();
	}
	
}
